/* global joint */
export default toolbar

function toolbar (elementId) {
  _toolbar.$el.appendTo(elementId)
  _toolbar.render()
}


const _toolbar = new joint.ui.Toolbar({
  tools: [
    'separator', // also possible, use defaults
    {
      type: 'inputText'
    },
    {
      type: 'button',
      name: 'ok',
      text: 'Ok'
    },
    {
      type: 'button',
      name: 'cancel',
      text: 'Cancel'
    },
    {
      type: 'separator'
    }
  ]
})
